#include "PlayerDriver.h"

namespace Context {

/* Driver things */
PlayerDriver::PlayerDriver() { std::printf("Aquele PlayerDriver...\n"); };

void PlayerDriver::pulse(int delta) {
	if (Engine::Sense::keyState[SDLK_z]) myCar->throttle();
	if (Engine::Sense::keyState[SDLK_x]) myCar->reverse();
	if (Engine::Sense::keyState[SDLK_LEFT]) myCar->turnLeft();
	if (Engine::Sense::keyState[SDLK_RIGHT]) myCar->turnRight();
}

}